<?php
if(isset($_REQUEST['cmd']) && $_REQUEST['cmd']=="update") {
	$mat = array();
	$wl = 25;
	$w = 5;
	$l = 15;
	$c_tails = 23;
	for($i=0;$i<=$c_tails;$i++){
		for($j=0;$j<=$c_tails;$j++){
			$mat[] = array('x'=>$x=$wl+$j*($w+$l),'y'=>$y=$wl+$i*($w+$l),'value'=>'#'.rand(0,1).rand(0,15).rand(0,1));
		}
	}
	echo json_encode($mat);
}

?>